package com.gzbuswx.eshop.inventory.request;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ArrayBlockingQueue;

public class RequestQueue {

    private List<ArrayBlockingQueue<Request>> queueList = new ArrayList<ArrayBlockingQueue<Request>>();

    private static class SingleInstance{
        private static RequestQueue instance;

        static{
            instance = new RequestQueue();
        }

        public static  RequestQueue getInstance(){
            return instance;
        }
    }

    public static RequestQueue getInstance(){
        return SingleInstance.getInstance();
    }

    public void addQueue(ArrayBlockingQueue<Request> queue){
        queueList.add(queue);
    }
}
